package com.domain;

import javax.xml.stream.events.StartDocument;
import java.util.Date;
import java.util.Objects;

/**
 * 维修单
 */
public class Maintenance_order {

    private Integer id;//(添加时不填)
    private String order_name;  //维修单名称
    private Float second_price;//拟定报价
    private Float final_price;// 最终维修费用(添加时不填)
    private Integer equipment_id;//维修设备id
    private String equipment_name;//维修设备名称(添加时不填)
    private String equipment_photos;//维修设备图片
    private String equipment_admin_name;//设备管理员(添加时不填)
    private Date createTime;// 维修单发起时间
    private Date maintenanceTime; //维修方接受维修时间（新增）
    private Date maintenanceFinishTime; //完成维修时间（新增）
    private String approver_name;//审核员(添加时不填)
    private Integer unit_id;//维修方id(添加时不填)
    private String unit_name;//维修方(添加时不填)
    private String problem_word;//故障文字描述
    private String problem_image;//故障图片描述
    private String problem_video;//故障视频描述
    private String solution_word;//维修方案文字描述
    private String solution_image;//维修方案文字描述
    private String solution_video;//维修方案文字描述
    private Integer warranty_period;//保修期


    private Integer order_state;//维修单状态id(添加时不填)
    private String state_name;//维修单状态(添加时不填)

    private Integer bidding_num;//竞单公司的数量(添加时不填)
    private Integer department_id;//所属部门id
    private String department_name;//所属部门名称
    private String maintenance_location;//维修位置
    private String expense_file;//维修清单文件

    private String insiderUnit_name;//报修单位（新增）
    private Integer maintenance_way_id;//维修方式id
    private String maintenance_way_name;//维修方式名称

    private Integer orderPeriodOfValidity; //维修单有效期
    private Integer biddingPeriodOfValidity;//竞单有效期

    private Float estimate_price;//维修方预估价格


    public Maintenance_order() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrder_name() {
        return order_name;
    }

    public void setOrder_name(String order_name) {
        this.order_name = order_name;
    }

    public Float getSecond_price() {
        return second_price;
    }

    public void setSecond_price(Float second_price) {
        this.second_price = second_price;
    }

    public Float getFinal_price() {
        return final_price;
    }

    public void setFinal_price(Float final_price) {
        this.final_price = final_price;
    }

    public Integer getEquipment_id() {
        return equipment_id;
    }

    public void setEquipment_id(Integer equipment_id) {
        this.equipment_id = equipment_id;
    }

    public String getEquipment_name() {
        return equipment_name;
    }

    public void setEquipment_name(String equipment_name) {
        this.equipment_name = equipment_name;
    }

    public String getEquipment_photos() {
        return equipment_photos;
    }

    public void setEquipment_photos(String equipment_photos) {
        this.equipment_photos = equipment_photos;
    }

    public String getEquipment_admin_name() {
        return equipment_admin_name;
    }

    public void setEquipment_admin_name(String equipment_admin_name) {
        this.equipment_admin_name = equipment_admin_name;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getMaintenanceTime() {
        return maintenanceTime;
    }

    public void setMaintenanceTime(Date maintenanceTime) {
        this.maintenanceTime = maintenanceTime;
    }

    public Date getMaintenanceFinishTime() {
        return maintenanceFinishTime;
    }

    public void setMaintenanceFinishTime(Date maintenanceFinishTime) {
        this.maintenanceFinishTime = maintenanceFinishTime;
    }

    public String getApprover_name() {
        return approver_name;
    }

    public void setApprover_name(String approver_name) {
        this.approver_name = approver_name;
    }

    public Integer getUnit_id() {
        return unit_id;
    }

    public void setUnit_id(Integer unit_id) {
        this.unit_id = unit_id;
    }

    public String getUnit_name() {
        return unit_name;
    }

    public void setUnit_name(String unit_name) {
        this.unit_name = unit_name;
    }

    public String getProblem_word() {
        return problem_word;
    }

    public void setProblem_word(String problem_word) {
        this.problem_word = problem_word;
    }

    public String getProblem_image() {
        return problem_image;
    }

    public void setProblem_image(String problem_image) {
        this.problem_image = problem_image;
    }

    public String getProblem_video() {
        return problem_video;
    }

    public void setProblem_video(String problem_video) {
        this.problem_video = problem_video;
    }

    public String getSolution_word() {
        return solution_word;
    }

    public void setSolution_word(String solution_word) {
        this.solution_word = solution_word;
    }

    public String getSolution_image() {
        return solution_image;
    }

    public void setSolution_image(String solution_image) {
        this.solution_image = solution_image;
    }

    public String getSolution_video() {
        return solution_video;
    }

    public void setSolution_video(String solution_video) {
        this.solution_video = solution_video;
    }

    public Integer getWarranty_period() {
        return warranty_period;
    }

    public void setWarranty_period(Integer warranty_period) {
        this.warranty_period = warranty_period;
    }

    public Integer getOrder_state() {
        return order_state;
    }

    public void setOrder_state(Integer order_state) {
        this.order_state = order_state;
    }

    public String getState_name() {
        return state_name;
    }

    public void setState_name(String state_name) {
        this.state_name = state_name;
    }

    public Integer getBidding_num() {
        return bidding_num;
    }

    public void setBidding_num(Integer bidding_num) {
        this.bidding_num = bidding_num;
    }

    public Integer getDepartment_id() {
        return department_id;
    }

    public void setDepartment_id(Integer department_id) {
        this.department_id = department_id;
    }

    public String getDepartment_name() {
        return department_name;
    }

    public void setDepartment_name(String department_name) {
        this.department_name = department_name;
    }

    public String getMaintenance_location() {
        return maintenance_location;
    }

    public void setMaintenance_location(String maintenance_location) {
        this.maintenance_location = maintenance_location;
    }

    public String getExpense_file() {
        return expense_file;
    }

    public void setExpense_file(String expense_file) {
        this.expense_file = expense_file;
    }

    public String getInsiderUnit_name() {
        return insiderUnit_name;
    }

    public void setInsiderUnit_name(String insiderUnit_name) {
        this.insiderUnit_name = insiderUnit_name;
    }

    public Integer getMaintenance_way_id() {
        return maintenance_way_id;
    }

    public void setMaintenance_way_id(Integer maintenance_way_id) {
        this.maintenance_way_id = maintenance_way_id;
    }

    public String getMaintenance_way_name() {
        return maintenance_way_name;
    }

    public void setMaintenance_way_name(String maintenance_way_name) {
        this.maintenance_way_name = maintenance_way_name;
    }


    public Integer getOrderPeriodOfValidity() {
        return orderPeriodOfValidity;
    }

    public void setOrderPeriodOfValidity(Integer orderPeriodOfValidity) {
        this.orderPeriodOfValidity = orderPeriodOfValidity;
    }

    public Integer getBiddingPeriodOfValidity() {
        return biddingPeriodOfValidity;
    }

    public void setBiddingPeriodOfValidity(Integer biddingPeriodOfValidity) {
        this.biddingPeriodOfValidity = biddingPeriodOfValidity;
    }

    public Float getEstimate_price() {
        return estimate_price;
    }

    public void setEstimate_price(Float estimate_price) {
        this.estimate_price = estimate_price;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Maintenance_order order = (Maintenance_order) o;
        return Objects.equals(id, order.id) &&
                Objects.equals(order_name, order.order_name) &&
                Objects.equals(second_price, order.second_price) &&
                Objects.equals(final_price, order.final_price) &&
                Objects.equals(equipment_id, order.equipment_id) &&
                Objects.equals(equipment_name, order.equipment_name) &&
                Objects.equals(equipment_photos, order.equipment_photos) &&
                Objects.equals(equipment_admin_name, order.equipment_admin_name) &&
                Objects.equals(createTime, order.createTime) &&
                Objects.equals(maintenanceTime, order.maintenanceTime) &&
                Objects.equals(maintenanceFinishTime, order.maintenanceFinishTime) &&
                Objects.equals(approver_name, order.approver_name) &&
                Objects.equals(unit_id, order.unit_id) &&
                Objects.equals(unit_name, order.unit_name) &&
                Objects.equals(problem_word, order.problem_word) &&
                Objects.equals(problem_image, order.problem_image) &&
                Objects.equals(problem_video, order.problem_video) &&
                Objects.equals(solution_word, order.solution_word) &&
                Objects.equals(solution_image, order.solution_image) &&
                Objects.equals(solution_video, order.solution_video) &&
                Objects.equals(warranty_period, order.warranty_period) &&
                Objects.equals(order_state, order.order_state) &&
                Objects.equals(state_name, order.state_name) &&
                Objects.equals(bidding_num, order.bidding_num) &&
                Objects.equals(department_id, order.department_id) &&
                Objects.equals(department_name, order.department_name) &&
                Objects.equals(maintenance_location, order.maintenance_location) &&
                Objects.equals(expense_file, order.expense_file) &&
                Objects.equals(insiderUnit_name, order.insiderUnit_name) &&
                Objects.equals(maintenance_way_id, order.maintenance_way_id) &&
                Objects.equals(maintenance_way_name, order.maintenance_way_name) &&
                Objects.equals(orderPeriodOfValidity, order.orderPeriodOfValidity) &&
                Objects.equals(biddingPeriodOfValidity, order.biddingPeriodOfValidity) &&
                Objects.equals(estimate_price, order.estimate_price);
    }

}
